package com.gupao.jwt;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
import com.gupao.model.User;

public class JwtTokenUtils {
	public static String getToken(User user) {
		String token=JWT.create().withAudience(user.getId()+"").sign(Algorithm.HMAC256(user.getPassword()));
		return token;
	}
	
	
}
